from app import App_own
from Applications.model._base import db
# from flask_sqlalchemy import SQLAlchemy
from Applications.model.Depts import DeptTree
from Applications.model.Todos import Folder,Item,Context
from Applications.model.user import User, UserDept
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
# db = SQLAlchemy(App_own)
migrate = Migrate(App_own, db)

manager = Manager(App_own)
manager.add_command('db', MigrateCommand)

if __name__ == '__main__':
    manager.run()